package models

import (
	"gorm.io/gorm"
)

type Banner struct {
	gorm.Model
	ID    int    `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"`
	Image string `gorm:"column:image;type:varchar(200)" json:"image"`
	Link  string `gorm:"column:link;type:varchar(200)" json:"link"`
}

// TableName sets the insert table name for this struct type
func (b *Banner) TableName() string {
	return "banners"
}
